import { getOffsetParent } from "./tools";
export default class BaseView {
  constructor(getEl, views) {
    this.name = "views";
    this.elem = getEl;
    this.__views__ = views;
    this.__list__ = views.rootPopup.items;
  }
  get left() {
    return getOffsetParent(this.elem(), "left");
  }
  get top() {
    return getOffsetParent(this.elem(), "top");
  }
  get width() {
    return this.elem().offsetWidth;
  }
  get height() {
    return this.elem().offsetHeight;
  }
}
